package unilearn.vo;

import java.util.Date;

public class Assignment implements java.io.Serializable {

    private Integer id;
    private String type;
    private String name;
    private Date dueDate;
    private String info;
    private String subjectCode;

    public Assignment() {
        id = -1;
    }

    public Assignment(String type, String name, Date dueDate, String info, String subjectCode) {
        this.type = type;
        this.name = name;
        this.dueDate = dueDate;
        this.info = info;
        this.subjectCode = subjectCode;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDueDate() {
        return this.dueDate;
    }

    public void setDueDate(Date dueDate) {
        this.dueDate = dueDate;
    }

    public String getInfo() {
        return this.info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getSubjectCode() {
        return this.subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    @Override
    public String toString() {
        return "Assignment{" + "id=" + id + ", type=" + type + ", name=" + name + ", dueDate=" + dueDate + ", info=" + info + ", subjectCode=" + subjectCode + '}';
    }
}
